# encoding: utf-8
"""
@author:auto generate code
@license: Apache Licence
@file: disable_audio_engine_builder.py
@time: 2020-07-18 17:01:27
@contact: tongdangdang1@yy.com

特殊命令：涉及其他资源初始化
"""
from sdktest_module.utils.api_base_builder import ApiBaseBuilder, parameter
from sdktest_module.utils.constant import *


def send_command(cmd):
    pass

def CreateEngineApiBuilder(platform):
    if platform == ANDROID:
        return CreateEngineApiBuilder_android()
    if platform == IOS:
        return CreateEngineApiBuilder_ios()


class CreateEngineApiBuilder_ios(ApiBaseBuilder):
    api_name = "MediaManager.createEngine:sceneId:"

    @parameter(1, "NSString")
    def appId(self, appId=1):
        return self

    @parameter(2, "NSInteger")
    def sceneId(self, sceneId=2):
        return self
#构造器，负责构造命令

class CreateEngineApiBuilder_android(ApiBaseBuilder):
    api_name = "tv.athena.live.base.manager.LiveRoomComponentManager.joinRoom"

    @parameter(1, "long")
    def uid(self, uid):
        return self

    @parameter(2, "String")
    def userName(self, userName):
        return self

    @parameter(3, "String")
    def sid(self, sid):
        return self

    @parameter(4, "String")
    def password(self, password):
        return self

    @parameter(5, "String")
    def token(self, token):
        return self

    @parameter(6, "String")
    def positionToken(self, positionToken):
        return self

    @parameter(7, "String")
    def extend(self, extend):
        return self

    @parameter(8, "joinRoomCallback")
    def callback(self, callback):
        return self
